<?php
header('Content-Type: application/json; charset=utf-8');

$subjects = [
    ['id' => 1, 'name' => '语文'],
    ['id' => 2, 'name' => '数学'],
    ['id' => 3, 'name' => '英语'],
];

echo json_encode([
    'stat' => 1,
    'msg'  => '',
    'data' => $subjects
], JSON_UNESCAPED_UNICODE);
